package com.desmart.renjiao.main.addresslist;

import com.desmart.renjiao.bean.Company;
import com.lemon.library.mvp.BaseModel;
import com.lemon.library.mvp.BasePresenter;
import com.lemon.library.mvp.BaseView;

import java.util.List;

import io.reactivex.Observable;
import okhttp3.RequestBody;
import okhttp3.ResponseBody;

public interface Addresslist{

    interface AddresslistM extends BaseModel{

        Observable<ResponseBody> getOrganizaiton(RequestBody string);
    }

    interface AddresslistV extends BaseView{

        void onSuccessGetOrgainzaiton(List<Company> list);
    }


    abstract class AddresslistP extends BasePresenter<AddresslistM,AddresslistV>{

        abstract void getOrgainzation();

    }

}
